package com.example.demo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author codeDorado
 * @version 1.0
 * @date 2020/7/12 22:32
 */
@RestController
public class TestController {

    @GetMapping("/hello/{id}")
    public String hello(@PathVariable String id) {
        return "hello : " + id;
    }

}
